﻿Class Hud
	Private _screenManager As ScreenManager

	Public Shared HudHeight!

	Public Shared Property isActive As Boolean

#Region "Graphics Data"

	Private upPanelTex As Texture2D

	Private upPanelPos As Vector2 = New Vector2(0, 0)
	'private Vector2 namePosition = new Vector2(0, 0)

#End Region

#Region "Initialization"

	'''<summary>
	'''Creates new hud with screenmanager
	'''</summary>

	Public Sub New(ScreenManager As ScreenManager)
		'check the parameter
		If (ScreenManager Is Nothing) Then _
		Throw New ArgumentNullException("screenManager")
		Me._screenManager = ScreenManager

		isActive = True
	End Sub

	'''<summary>
	'''load the graphics from content manager
	'''</summary>

	Public Sub LoadContent()
		Dim content As ContentManager = CType(_screenManager.Game, HopeGame).StaticContent

		upPanelTex = content.Load(Of Texture2D)("Textures/Interface/StatusBar/Panel/playerpanel")
	End Sub
#End Region

#Region "Drawing"

	'''<summary>
	'''draw the screen
	'''</summary>

	Public Sub Draw()
		Dim _spriteBatch As SpriteBatch = _screenManager.SpriteBatch

		_spriteBatch.Begin()

		_spriteBatch.Draw(upPanelTex, upPanelPos, Nothing, Color.White, 0, New Vector2(0, 0), 1, SpriteEffects.None, 0.95F)

		_spriteBatch.End()
	End Sub

#End Region



    End Class